<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      //1.利用new创建数组
      //   var arr = new Arry();
      //2.利用数组字面量创建数组[]
      var arr = []; //创建了一个空shuzu
      var arr1 = [1, 2, "adwd", "true"]; //数组里面的数据称为数组元素
      console.log(arr1[2]);
      console.log(arr1);
    </script>
  </head>
  <body></body>
</html>
